 $(document).ready(function(){
                var map = new GMap2($("#map").get(0));
                var saoJose = new GLatLng(-23.184235, -45.857964);
                map.setCenter(saoJose, 13);
                
                // Create our "tiny" marker icon
                var blueIcon = new GIcon(G_DEFAULT_ICON);
                blueIcon.image = "/StopBusSVN/images/stop_bus_icon.png";
                // Set up our GMarkerOptions object
                markerOptions = {
                    icon: blueIcon
                };
                
                
                // setup 10 random points
                var bounds = map.getBounds();
                var southWest = bounds.getSouthWest();
                var northEast = bounds.getNorthEast();
                var lngSpan = northEast.lng() - southWest.lng();
                var latSpan = northEast.lat() - southWest.lat();
                var markers = [];
				var points = new Array(	new GLatLng(-23.179659,-45.880451),
										new GLatLng(-23.178554,-45.85453),
										new GLatLng(-23.182973,-45.852385),
										new GLatLng(-23.182973,-45.852385),
										new GLatLng(-23.181158,-45.874186),
										new GLatLng(-23.195596,-45.899162),
										new GLatLng(-23.189442,-45.875902))
                for (var i = 0; i < points.length; i++) {
                    marker = new GMarker(points[i], markerOptions);
                    map.addOverlay(marker);
                    markers[i] = marker;
                }
                
                $(markers).each(function(i, marker){
                    $("<li />").html("Point " + i).click(function(){
                        displayPoint(marker, i);
                    }).appendTo("#list");
                    
                    GEvent.addListener(marker, "click", function(){
                        displayPoint(marker, i);
                    });
                });
                
                $("#message").appendTo(map.getPane(G_MAP_FLOAT_SHADOW_PANE));
                
                function displayPoint(marker, index){
                    $("#message").hide();
                    
                    var moveEnd = GEvent.addListener(map, "moveend", function(){
                        var markerOffset = map.fromLatLngToDivPixel(marker.getLatLng());
                        $("#message").fadeIn().css({
                            top: markerOffset.y,
                            left: markerOffset.x
                        });
                        
                        GEvent.removeListener(moveEnd);
                    });
                    map.panTo(marker.getLatLng());
                }
            });